﻿<%@ Page Title="Filmes" Language="C#" MasterPageFile="~/Site.Master" AutoEventWireup="true" 
    CodeBehind="Filme.aspx.cs" Inherits="uVirtualWeb.List.Filme" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
    <link href="/bootstrap/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen" />
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <script src="http://code.jquery.com/jquery.js" type="text/jscript"></script>
    <script src="/bootstrap/bootstrap/js/bootstrap.min.js" type="text/jscript"></script>
    <asp:ScriptManager ID="ScriptManager1" runat="server" />
    <h2>Filmes</h2>
    <p></p>
    <div class="container">
    <asp:UpdatePanel runat="server" ID="upFilmes" UpdateMode="Conditional">
        <Triggers>
        </Triggers>
        <ContentTemplate>
            <asp:ListView runat="server" ID="lstFilmes" ItemPlaceholderID="PlaceHolder1">
                <LayoutTemplate>
                    <table class="table table-bordered table-hover">
                        <tr>
                            <th>ID</th>
                            <th>Nome</th>
                            <th>Classificação Etária</th>
                            <%--<th>Lançamento</th>--%>
                            <th>Valor</th>
                            <%--<th></th>--%>
                        </tr>
                        <asp:PlaceHolder runat="server" ID="PlaceHolder1">
                        </asp:PlaceHolder>
                    </table>
                </LayoutTemplate>
                <ItemTemplate>
                        <tr>
                            <td><asp:Label ID="Label0" runat="server"><%# Eval("idFilme") %></asp:Label></td>
                            <td><asp:Label ID="Label1" runat="server"><%# Eval("nome") %></asp:Label></td>
                            <td><asp:Label ID="Label2" runat="server"><%# Eval("classificacaoEtaria") %></asp:Label></td>
                            <%--<td><asp:Label ID="Label3" runat="server"><%# Eval("lancamento") %></asp:Label></td>--%>
                            <td><asp:Label ID="Label4" runat="server"><%# Eval("valor") %></asp:Label></td>
                            <%--<td><center><a class="btn" data-toggle="modal" role="button">Ver Cartaz</a></center></td>--%>
                        </tr>
                </ItemTemplate>
                <EmptyItemTemplate>
                    Não existem itens a serem listados.
                </EmptyItemTemplate>
            </asp:ListView>
        </ContentTemplate>
    </asp:UpdatePanel>
    </div>
    <div id="myModal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>
        <h3 id="myModalLabel">Modal header</h3>
      </div>
      <div class="modal-body">
        <p>One fine body…</p>
      </div>
      <div class="modal-footer">
        <button class="btn" data-dismiss="modal" aria-hidden="true">Close</button>
        <button class="btn btn-primary">Save changes</button>
      </div>
    </div>
    <script type="text/javascript">
        $("#menu_filme").addClass("active");
    </script>
</asp:Content>
